Pause

Section: Oct. 1, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Pause - suspend process until a signal is received  

SYNOPSIS

void Pause();
 

DESCRIPTION

Pause causes the calling process to go to sleep until a signal that is not being ignored or masked is received. If a signal handler has been established for that signal with the Psignal system call, then the handler is invoked before Pause returns; if the handler does a longjmp to a different point in the program, if it exits the program, or if the signal handler was set to SIG_DFL and the default action for the signal is to terminate the process, then Pause will never return.  

SEE ALSO

Psigblock(2), Psignal(2), Psigsetmask(2)  

BUGS

There really should be a Psigpause system call that sets the signal mask and pauses atomically; as it stands now, many programs may face a race condition whereby a signal could arrive between the time it's unmasked and the time Pause is called.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 16:01:47 GMT, March 03, 2023